<template>
  <div>
    自己的input组件<input type="text" :value='value' @input='fn'>
  </div>
</template>
<script>
// @ is an alias to /src
export default {
  name: "XXX",
  props: ['value'],
  data() {
    return {};
  },
  methods: {
    fn(e){
      this.$emit('input',e.target.value)
    }
  },
  components: {}
};
</script>
<style lang="less">
</style>